#!/usr/bin/python3
import unittest
import argparse
import sys
import os

class MyTest(unittest.TestCase):
  def test_touch_file(self):
    """Tests that finding the root in a standard repo succeeds."""
    with open(os.path.join(args.tmpdir, 'test'), 'w') as f:
      f.write('hello')

def main(module):
  parser = argparse.ArgumentParser(description='Process some integers.')
  parser.add_argument('--tmpdir')
  parser.add_argument('argv', nargs='*')

  global args
  args = parser.parse_args()

  unittest.main(module, argv=[sys.argv[0]] + args.argv)

if __name__ == '__main__':
  main()
